#ifndef wu_STOPMOTION_H
#define wu_STOPMOTION_H


#pragma once
#include "wuSkin.h"

class wuStopMotion
{
    public:
        wuStopMotion();
        ~wuStopMotion();

		void setup(vector <wuSkin> * _skins);
		void update();
		void draw(bool pinta_bg=false, int _offX=0);
        void clear();
        void capture(ofRectangle _rect);
        bool isAlive();
        void reverse(bool _rev);
        void setFreeze_end(bool _bfreeze);
        void setLoop(bool _bloop);

        ofPoint offset;

		vector<wuSkin>* skins;

		int framePtr, counter;
		bool bisAlive;
		bool bReverse;
		bool bStopsAtEnd;
		bool bLoop;
		bool bGo;
};
#endif

